import {
	createRouter,
	createWebHashHistory
} from 'vue-router'
// import Home from '../views/Home.vue'
const routes = [{
		path: '/', //APP启动页, 谭湛宇
		name: 'StartPage',
		component: () => import('../views/StartPage')
	},
	{
		path: '/test', //测试页面
		name: 'Test',
		component: () => import('../views/Test')
	},
	{
		path: '/navigation', //首页导航栏
		name: 'Navigation',
		component: () => import("@/views/Navigation"),
		children: [{
				path: '/homepage', //APP首页,鲁俊豪
				name: 'Homepage',
				component: () => import('@/views/Homepage'),
			},
			{
				path: '/cart', //购物和
				name: 'Cart',
				component: () => import('@/views/Cart'),
				children: [{
					path: '/shoppingcart', //购物车,刘舒
					name: 'ShoppingCart',
					component: () => import('@/views/ShoppingCart'),
				}, ]
			},

			{
				path: '/my', //个人中心,谭湛宇
				name: 'My',
				component: () => import('@/views/My'),
			},
			{
				path: '/dishesDetails', //菜品详情,谭湛宇
				name: 'DishesDetails',
				component: () => import('@/views/DishesDetails')
			},
			{
				path: '/writingEvaluation', //写菜品评价,谭湛宇
				name: 'WritingEvaluation',
				component: () => import('@/views/WritingEvaluation')
			},
			{
				path: '/myAssetsList', //刘余良-资产(红包,代金券)
				name: 'MyAssetsList',
				component: () => import('@/views/MyAssetsList')
			},
			{
				path: '/myAssetsShopList', //刘余良-资产(红包,代金券)
				name: 'MyAssetsShopList',
				component: () => import('@/views/MyAssetsShopList')
			}, {
				path: '/myAssetsOrderList', //刘余良-资产(红包,代金券)
				name: 'MyAssetsOrderList',
				component: () => import('@/views/MyAssetsOrderList')
			},
			{
				path: '/assetsCasCouponList', //刘余良-资产(红包,代金券)
				name: 'AssetsCasCouponList',
				component: () => import('@/views/AssetsCasCouponList')
			},
			{
				path: '/assetsCasCouponList', //刘余良-资产(红包,代金券)
				name: 'AssetsCasCouponList',
				component: () => import('@/views/AssetsCasCouponList')
			},
			{
				path: '/submitInfo', //提交订单-刘舒
				name: 'SubmitInfo',
				component: () => import('@/views/SubmitInfo')
			},
			{
				path: '/orderInfo', //订单详情-刘舒
				name: 'OrderInfo',
				component: () => import('@/views/OrderInfo')
			},
			{
				path: '/myFootprint', //足迹-鲁俊豪
				name: 'MyFootprint',
				component: () => import('@/views/MyFootprint')
			},
			{
				path: '/message', //消息-谭湛宇
				name: 'Message',
				component: () => import('@/views/Message')
			}, {
				path: '/pendingEvaluationList', //待评价-谭湛宇
				name: 'PendingEvaluationList',
				component: () => import('@/views/PendingEvaluationList')
			},
			{
				path: '/groupchat', //群聊
				name: 'Groupchat',
				component: () => import('@/views/Groupchat')
			}
		]
	},
	{
		path: '/shoppingcart',//购物车;刘舒
		name: 'ShoppingCart',
		component: () => import('@/views/ShoppingCart'),
	},
	{
		path: '/waimai',
		name: 'WaiMai',
		component: () => import('../views/WaiMai.vue'),
		children: [{
				path: '/waiMaiIndex',
				name: 'WaiMaiIndex',
				component: () => import('@/views/WaiMaiIndex'),
			},
			{
				path: '/order',//订单;刘舒
				name: 'Order',
				component: () => import('@/views/Order'),
			},
			{
				path: '/member', //会员,谭湛宇
				name: 'Member',
				component: () => import('@/views/Member'),
			},
		]
	},
	{
		path: '/shopDishesList',//菜品列表; 谭湛宇
		name: 'ShopDishesList',
		component: () => import('@/views/ShopDishesList'),
	},
	{
		path: '/login', //登录,谭湛宇
		name: 'Login',
		component: () => import('../views/Login.vue')
	},
	{
		path: '/verify', //验证码登录,谭湛宇
		name: 'Verify',
		component: () => import('@/views/Verify'),
	},
	{
		path: '/verifyByPassword', //密码登录,谭湛宇
		name: 'VerifyByPassword',
		component: () => import('../views/VerifyByPassword')
	},
	{
		path: '/myEvaluationList', //我的评价列表,谭湛宇
		name: 'MyEvaluationList',
		component: () => import('@/views/MyEvaluationList')
	},
	{
		path: '/settings',//设置
		name: 'Settings',
		component: () => import('@/views/Settings.vue'),
	},
	{
		path: '/personal',
		name: 'Personal',
		component: () => import('@/views/Personal'),
	},
	// {
	// 	path: '/address',
	// 	name: 'Address',
	// 	component: () => import('@/views/Address'),
	// },
	{
		path: '/newaddress',
		name: 'NewAddress',
		component: () => import('@/views/NewAddress'),
	}, 
	// {
	// 	path: '/platformServiceAgreement',
	// 	name: 'PlatformServiceAgreement',
	// 	component: () => import('@/views/PlatformServiceAgreement.vue'),
	// },
	{
		path: '/addShop',
		name: 'AddShop',
		component: () => import('@/views/AddShop'),
	},


]

const router = createRouter({
	history: createWebHashHistory(),
	routes
})
export default router
